import request from '@/utils/request'

let prefix = 'http://localhost:8082/'
export function fetchUserData() {
    return request.get('https://api.github.com/users/woai3c')
}
// srm 脚本管理
export function srmAdd(scriptAddDto) {
    return request.post(prefix + 'srm/add', scriptAddDto)
}
export function srmDelete(ids) {
    return request.get(prefix + 'srm/delete/' + ids)
}
export function srmUpdate(scriptUpdateDto) {
    return request.post(prefix + 'srm/update', scriptUpdateDto)
}
export function srmList() {
    return request.get(prefix + 'srm/list')
}
// tsm 抓包设置 - 任务设置 - 任务管理
export function tsmPs() {
    return request.get(prefix + 'task/ps/list')
}
